<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/22
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style>
        .form_login{
            position: absolute;
            top: 220px;
            left: 300px;
            background-color: yellowgreen;
            width: 300px;
            height: 300px;
        }
        .input_text{
            position: absolute;
            right: 0px;
        }
        .button_login{
            position: absolute;
            left: 140px;
            bottom: 100px;
        }
    </style>
</head>
<body>

       <div class="form_login">
           <form action="login" method="post">
               <span>name</span> <input type="text" name="name" class="input_text" value="${sessionScope.name}"> <br><br>
               <span>password</span> <input type="password" name="password"  class="input_text" value="${sessionScope.password}"><br><br>
               <button type="submit" class="button_login">GO</button>
               <a href="register.jsp">注册</a>
               
           </form>
       </div>
<%--       判断登录是否正确--%>

        <c:if test="${sessionScope.logininf==false}">
            <script>
                alert("用户名或密码错误");

            </script>
        </c:if>

</body>
</html>
